package com.easyj.admin.db.mapper;

import com.easyj.admin.db.model.Position;
import com.easyj.admin.db.model.User;
import com.easyj.admin.db.model.UserPosition;
import java.util.List;


public interface UserPositionMapper {
    
    int deleteByPrimaryKey(Long id);

    int insert(UserPosition record);

    UserPosition selectByPrimaryKey(Long id);

    int deleteByUserId(Long userId);
    
    long countByPositionId(Long positionID);
    
    List<Position> selectPositionsByUserId(Long userId);
    
    List<User> selectUsersByPositionId(Long positionId);
    
    List<User> selectUsersByPositionCode(String positionCode);

 }